﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="SocietyListing.aspx.cs" Inherits="HSMPWeb.Pages.SocietyListing" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 155px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <br />
    <div>
        <table class="style2">
            <tr>
                <td class="style3">
                    Enter SocietyKey
                </td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="btnRetrieveData" runat="server" BorderWidth="0px" CssClass="btn"
                        Text="Retrieve Data" OnClick="btnRetrieveData_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <h3>
            Existing List</h3>
        <br />
        <asp:GridView ID="gdvSocietyList" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" PageSize="10" Width="75%" OnPageIndexChanging="gdvSocietyList_PageIndexChanging"
            BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px">
            <AlternatingRowStyle BackColor="#BFE4FF" />
            <PagerStyle BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" />
            <HeaderStyle Height="30px" BackColor="Gray" Font-Size="15px" BorderColor="#CCCCCC"
                BorderStyle="Solid" BorderWidth="1px" />
            <RowStyle Height="20px" Font-Size="13px" BorderColor="#000" BorderStyle="Solid" BorderWidth="1px" />
            <Columns>
                <asp:BoundField DataField="SocietyKey" HeaderText="SocietyKey" SortExpression="SocietyKey" />
                <asp:BoundField DataField="SocietyCode" HeaderText="SocietyCode" SortExpression="SocietyCode" />
                <asp:BoundField DataField="SocietyName" HeaderText="SocietyName" SortExpression="SocietyName" />
            </Columns>
        </asp:GridView>
        <div style="color: Green; font-weight: normal">
            <br />
            <i>You are viewing page
                <%=gdvSocietyList.PageIndex + 1%>
                of
                <%=gdvSocietyList.PageCount%>
            </i>
        </div>
    </div>
</asp:Content>
